<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>员工加款项表</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="grid-btn" style="display:inline">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="value" @keyup.enter="query" placeholder="工号/姓名/事由">
			</div>
		</div>
		<div class="grid-btn" style="display:inline">
			<div class="form-group col-sm-2">
				<input id="calTime" type="text" class="form-control" v-model="calTime" @keyup.enter="query" placeholder="年月">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
		</div>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">员工工号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataAddmoney.workno" placeholder="员工工号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">员工姓名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataAddmoney.workname" placeholder="员工姓名"/>
			    </div>
			</div>
									<!-- <div class="form-group">
			   	<div class="col-sm-2 control-label">身份证号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataAddmoney.cardno" placeholder="身份证号"/>
			    </div>
			</div> -->
									<div class="form-group">
			   	<div class="col-sm-2 control-label">金额</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataAddmoney.money" placeholder="金额"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">事由</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataAddmoney.memo" placeholder="事由"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">年</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataAddmoney.year" placeholder="年"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">月</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataAddmoney.month" placeholder="月"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">排序</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataAddmoney.orderno" placeholder="排序"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">备注字段</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataAddmoney.excol" placeholder="备注字段"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">创建时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataAddmoney.createtime" placeholder="创建时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">创建人</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataAddmoney.createby" placeholder="创建人"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">修改时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataAddmoney.updatetime" placeholder="修改时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">修改人</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataAddmoney.updateby" placeholder="修改人"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${rc.contextPath}/js/zjdc/dataaddmoney.js?_${date.systemTime}"></script>
<script src="${rc.contextPath}/js/laydate/laydate.js"></script>
<script type="text/javascript">
laydate.render({
	  elem: '#calTime', //指定元素
	  type:'month',
	  max:'currentmonth'
	});
</script>
</body>
</html>